From: Paul Eggert Date: Thu, 28 Apr 2011 16:11:49 +0000 (-0700) Subject: Merge from mainline. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~3911^2~38 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=485a6cd64b51e7ceca532f53aa655c9889da392d;p=emacs.git Merge from mainline. --- 485a6cd64b51e7ceca532f53aa655c9889da392d diff --cc src/ChangeLog index eddfd5eb0c7,24e710ac302..4c8c539529d --- a/src/ChangeLog +++ b/src/ChangeLog @@@ -1,28 -1,13 +1,38 @@@ +2011-04-28 Paul Eggert + + * sysdep.c (get_random): Don't assume EMACS_INT is no wider than long. + Also, don't assume VALBITS / RAND_BITS is less than 5, + and don't rely on undefined behavior when shifting a 1 left into + the sign bit. + * lisp.h (get_random): Change signature to match. + + * lread.c (hash_string): Use size_t, not int, for hash computation. + Normally we prefer signed values; but hashing is special, because + it's better to use unsigned division on hash table sizes so that + the remainder is nonnegative. Also, size_t is the natural width + for hashing into memory. The previous code used 'int', which doesn't + retain enough info to hash well into very large tables. + (oblookup, oblookup_last_bucket_number, Funintern): Likewise. + + * dbusbind.c: Don't possibly lose pointer info when converting. + (xd_remove_watch, Fdbus_init_bus, xd_read_queued_messages): + Use XPNTR rather than XHASH, so that the high-order bits of + the pointer aren't lost when converting through void *. + + * eval.c (Fautoload): Don't double-shift a pointer. + + * fns.c (Frandom): Let EMACS_UINT be wider than unsigned long. + + 2011-04-28 Eli Zaretskii + + * doprnt.c (doprnt): Don't return value smaller than the buffer + size if the message was truncated. (Bug#8545). + + 2011-04-28 Juanma Barranquero + + * w32fns.c (Fx_change_window_property, Fx_delete_window_property) + (Fx_window_property): #if-0 the whole functions, not just the bodies. + 2011-04-27 Paul Eggert * doprnt.c (doprnt): Support "ll" length modifier, for long long.